from core.room import Room
from core.basehandler import BaseHandler
from core.support import get_game

class victory_room(Room):
    
    def __init__(self, room_id):
        Room.__init__(self, room_id)    # do basic initialization for every room
    
    # return description of room.
    def get_description(self):
        game = get_game()
        score = ((game.get_drinks() + game.get_food() + game.get_social()) * 7)
        return "You've got just the right combination of booze-fueled swagger, delicious crab cakes and hard-won interaction points! MISSION ACCOMPLISHED. Your score was " + str(score) +". Play again and try to beat it!" 
        
    
    # return image of room
    def get_image(self):
        return 'victory_room.gif'

class VictoryRoomHandler(BaseHandler):
    
    # override default template to omit the inventory and actions
    def get_template(self):
        return 'victory.html'
    
    # return class to use to create a new instance of this room
    def get_room_class(self):
        return victory_room

# define actions for this room
